All Questions
Tagged with scriptingnetworking
56 questions
0votes
2answers
1kviews
Load iptables or nftables rules as fast as possible during boot and before the network interfaces be put online
I rely on my specific service to load iptables rules at startup in my debian installation, this service calls iptables-restore my_rules.v4 ip6tables-restore my_rules.v6 and do some other scripts ...
0votes
0answers
143views
How can I list all hosts on my network with the time and/or date that they connected to the network?
Regarding the situational context, long story short, a family member did a dumb thing, and I need to increase the capabilities of my network monitoring system. Is there a way to create a log of the ...
0votes
0answers
594views
Enter Ubuntu's VPN's credentials using CLI only, avoiding GUI
I spent days searching for a method to automate the process of logging in to Ubuntu's built-in VPN "Multi-protocol VPN Client (openconnect)", but I didn't find a way to do it, this is what I ...
1vote
0answers
241views
Very strange routing lags on Keenetic Entware
So, Keenetic Hopper with Entware. I have written several scripts for selective routing. All these scripts work fine, no runtime errors, and the routing works. Ping via Wireguard works fine, but ...
1vote
1answer
52views
How can hostnames vary without having to add another name?
i want acces all subdomain name without add manualy i tried with but doesn't work 127.0.0.6 *.azka.dev 127.0.0.1 localhost 127.0.1.1 noob-Modern-14-B5M # The following lines are desirable for ...
-1votes
1answer
271views
Triggering a script when new TCP connection is established
So I need to run a script whenever a new TCP connection is established. I found the BCC - Tools tcpconnect.py to monitor the TCP connections but I can't find a way to leverage that tool to trigger my ...
1vote
0answers
1kviews
How to Track total internet / data usage of a specific app or a process for Linux (headless)
I would like to check the total use of the Internet for a process or application or a bash script (to set up a quota for my application). I tried some applications and found it just giving download ...
0votes
1answer
87views
passing a command's output as an argument to another command without using a temporary file [duplicate]
I'm trying to convert thousands of video files from one format (vob) to another (mkv). Each source video is segmented into < 8 sequentially numbered 1GB *.vob files. Sadly, the video converting ...
0votes
1answer
526views
Script that performs an action based on the contents of a UDP packet?
I'm trying to write a script that listens for broadcasted UDP packets on port 2088, read the data, and then POST to an URL. Specifically, I'm trying to make a LIFX light turn red when I'm on the ...
0votes
1answer
259views
Better way to determine network ID?
I have several scripts that require determining which network I'm connected to (with my Linux laptop), for example mounting a local NAS or (dis/)enabling a specific service. An added complexity is ...
0votes
1answer
2kviews
How to fix the conflict in the naming scheme for network interfaces use by Predictable Names scheme?
I have a fresh install of Debian 10 (Buster) and there is an issue with the Predictable Name scheme. I have 4 onboard NICs and a 4 Port PCIe NIC. The naming convention works for the onboard port, but ...
0votes
1answer
99views
How to open ports to test nmap script?
I need to test my nmap script, which crashes when many ports are open. So I need a script (python/bash) that opens n ports on a server. How could I do that? Thank you
1vote
3answers
1kviews
Need Improvement on Script Which Continuously Tests Website
Need improvement on a script which continuously tests website. It's currently been used the following script, but it is giving a large amount of failing emails, while website is still up: #!/bin/...
3votes
1answer
2kviews
Identify GSM Carrier of SIM Card Inserted into a Linux Host
The SIM card used in each Linux gateway for the GSM connection will vary from location to location due to signal coverage by different GSM carrier networks. But in order to automate setting the APN ...
1vote
0answers
706views
Detect network interfaces with carrier on boot
I have a Debian system with more than one ethernet port. I'm currently running a script on boot which assigns a static IP to one of the ports (by updating /etc/network/interfaces and restarting ...